package com.yl.pattern.structuralmodel.proxy.cglib_proxy;

/**
 * @Author 小羊
 * @Date 30/10/2024下午 8:14
 * @ClassName Client
 * @Description Client
 */
public class Client {
    public static void main(String[] args) {
        //创建代理工厂对象
        ProxyFactory factory = new ProxyFactory();
        //获取代理对象
        TrainStation station = factory.getProxyObject();
        //调用代理对象中的sell方法进行卖票
        station.sell();
    }
}
